define(['qb','jq','a'],function(){
   class Book{
    constructor(){
        this.ul=document.querySelector('ul')
        // this.li=document.querySelectorAll('li')
        this.lists=lists
        this.blist=[]
        this.choose()
        this.getmes()
        this.getlodemes()
    }
    getmes() {
        return JSON.parse(localStorage.getItem('abc')) || []
    }
    getlodemes(){
        return JSON.parse(localStorage.getItem('qwe')) || []
    }
    choose(){
        console.log("choose");
        console.log($('li').length);
        $('li').click(function(e){
            var e = e || window.event
            var target = e.target || e.srcElement
            console.log("liclick");
            var arr=[];
            console.log(lists.length);
            console.log($(this).attr('did'));
            console.log(target.nodeName);
            for(var a=0;a<lists.length;a++)
            {
               
                if(target.nodeName=='LI' || target.nodeName=='IMG' || target.nodeName=='SPAN' || target.nodeName=='P'){
                    if(lists[a].id==$(this).attr('did'))
                    {
                        arr.push(lists[a]);
                    }
                }
            }

            if(arr.length==0)
            {return;}
            location.href='../html/xiangq.html'
            console.log(arr);
            localStorage.setItem('abc', JSON.stringify(arr))
        })
    }
   }
   new Book()
   
});